import request from '@/utils/request'

///字典
export function dictMatching (data) {
  return request({
   url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 计划单执行明细
export function listDetailReport(query) {
  return request({
    url: '/mp/plan/planDetail',
    method: 'get',
    params: query
  })
}

//  计划单执行明细导出
export function exportDetailReport(query) {
  return request({
    url: '/mp/plan/planDetail/export',
    method: 'get',
    params: query
  })
}

// 计划单执行汇总
export function listTotalReport(query) {
  return request({
    url: '/mp/plan/summary',
    method: 'get',
    params: query
  })
}

//  计划单执行明细汇总
export function exportTotalReport(query) {
  return request({
    url: '/mp/plan/summary/export',
    method: 'get',
    params: query
  })
}
//  计划单需求明细
export function listNeedReport(query) {
  return request({
    url: '/mp/plan/need',
    method: 'get',
    params: query
  })
}



//  计划单需求明细导出
export function exportNeedReport(query) {
  return request({
    url: '/mp/plan/need/export',
    method: 'get',
    params: query
  })
}

// 查询料品大类
export function materialSort() {
  return request({
    url: '/wm/warehouses/getSort',
    method: 'get',
  })
}

//生产计划需求表
export function listOrderReport(query) {
  return request({
    url: '/mp/order/report',
    method: 'get',
    params:query
  })
}

//生产计划需求表导出
export function exportOrderReport(query) {
  return request({
    url: '/mp/order/report/export',
    method: 'get',
    params:query
  })
}
